package com.wanmait.movie;

import com.github.pagehelper.PageInfo;
import com.wanmait.movie.entity.User;
import com.wanmait.movie.service.UserService;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

@SpringBootTest
public class testUserService {
    @Resource
    private UserService userService;
    public void testUserList(){
        PageInfo<User> userlist = userService.getUserList("111",1,3);
        userlist.getList().forEach(user -> System.out.println(user.getUsername()));
    }
}
